const getData = function(that) {
    var _append;
    var rtn = {
        'swift_id': that.swift_id,
        'title_type': that.input_title_type,
        'title': that.input_title,
        'content': that.input_content
    };
    if (that.isEnterprise) {
        _append = {
            'invoice_type': that.input_invoice_type,
            'tax_number': that.input_tax_number
        };
        rtn = Object.assign(rtn, _append);
        if (that.isVAT) {
            _append = {
                'enterprise_address': that.input_enterprise_address,
                'enterprise_telphone': that.input_enterprise_telphone,
                'enterprise_bank': that.input_enterprise_bank,
                'enterprise_bank_account': that.input_enterprise_bank_account
            };
            rtn = Object.assign(rtn, _append);
        }
    }
    _append = {
        'user_phone': that.input_user_phone,
        'user_name': that.input_user_name,
        'user_address_province': that.input_user_address_province,
        'user_address_city': that.input_user_address_city,
        'user_address_district': that.input_user_address_district,
        'user_address_detail': that.input_user_address_detail
    };
    rtn = Object.assign(rtn, _append);
    return rtn;
};

export default {
    getData
};
